# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.contrib import admin
from wechat.models import Menu

# Register your models here.


@admin.register(Menu)
class MenuAdmin(admin.ModelAdmin):

    list_display = ('id', 'member', 'mtype', 'mindex', 'name', 'key', 'url', 'media_id',
                    'appid', 'pagepath', 'level', 'parent_id', 'create', 'modify')
    fields = ('member', 'mtype', 'mindex', 'name', 'key', 'url', 'media_id',
                    'appid', 'pagepath', 'level', 'parent_id')
    list_filter = ('member', 'level')
